package la.bbs558.controller.base;

import lombok.Getter;

/**
 * @Classname ErrorCodeEnum
 * @Description TODO
 * @Date 2023/12/7 11:10
 * @Created by weihanmin
 */
@Getter
public enum CodeEnum {
    SUCCESS(200,"成功"),
    FAIL(-1,"失败"),
    PARAMS(401,"参数异常"),
    NOT_LOGIN(402,"未登录"),
    NOT_AUTH(403,"暂无权限"),
    SA_TOKEN(501,"token异常"),
    SYSTEM(500,"出错！"),
    POST_AUDIT_NOT_PASS(601,"帖子审核未通过");

    private final int code;
    private final String desc;

    CodeEnum(int code, String desc) {
        this.code = code;
        this.desc = desc;
    }
}
